<?php
/**
 * Created by PhpStorm.
 * User: 庆金
 * Date: 2019-12-31
 * Time: 21:20
 */
namespace app\common\lib;
class Util {
    /**
     * Api 输出格式
     * @param $status
     * @param string $message
     * @param array $data
     */
    public static function show($status,$message="",$data=[]){
        $result = [
            'status'    => $status,
            'message'   => $message,
            'data'      => $data
        ];
        echo json_encode($result);
    }
}